package java68_4;

public class LionToy {
    String color;
    int price;
    public void run(){
        System.out.println("颜色是"+color+",价格为"+price+"元的玩具狮子在跑");
    }
    public String bark(){
        String sound="吼吼吼";
        return sound;
    }
    public void showInfo(){
        System.out.println("这一个颜色是"+color+"色的玩具狮子,价格是"+price+"元");
        System.out.println("叫声很好听,是"+bark());
        //System.out.println("叫声很好听,是"+sound);//报错
        System.out.println("他还能跑动,");
        run();
        //String sound=bark();
        //System.out.println("叫声很好听,是"+sound);
    }
}
